package com.my.aslife.aop;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.my.aslife.module.common.Constant;
import com.my.aslife.module.common.RedisConstant;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

import java.util.Set;

/**
 * @author mayuan
 * @description TODO
 */
@Aspect
@Slf4j
@Component
public class StartTaskAop {

    @Pointcut("@annotation(com.my.aslife.aop.StartTask)")
    public void startTask() {
    }

    @Around("startTask()")
    public Object loglog(ProceedingJoinPoint pjp) throws Throwable {
        Object result = pjp.proceed();

        return result;
    }
}
